home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / lucida-1.2.tar.gz / lucida-1.2.tar / lucida-1.2 / Makefile < prev    next >
Makefile  |  1992-10-31  |  2KB  |  98 lines

  1. # Makefile for Lucida math fonts.
  2. version = 1.2
  3.  
  4. # Installation directories.
  5. tfm_dir = /usr/local/lib/tex/fonts/adobe/lucida
  6. vf_dir = $(tfm_dir)
  7.  
  8. # How to install the font files.
  9. #
  10. INSTALL_DATA = install -m 664
  11.  
  12. # The various files we can make.
  13. regular=plcb.tfm plcbi.tfm plcr.tfm plcri.tfm plcro.tfm
  14. math=plcrm.tfm plcry.tfm plcrv.tfm
  15. sans=plcbis.tfm plcbs.tfm plcrs.tfm plcris.tfm plcrst.tfm # plcbst
  16. bright=plcbb.tfm plcrb.tfm plcrbi.tfm # plcdbi
  17. adobe_all = $(math) $(regular) $(sans) $(bright)
  18.  
  19. # We use afm2tfm from the dvips{,k} distribution.
  20. AFM2TFM=afm2tfm
  21. AFM2TFMFLAGS=-O
  22.  
  23. # Directory where encoding files are kept.
  24. encoding_dir = $(dvips)/reencode
  25.  
  26. # How to make a TFM file from a VPL file (run vptovf, ignoring warnings
  27. # about numbers larger than 2048).
  28. # (I don't understand why `.vpl.tfm' doesn't work.)
  29. %.vf %.tfm: %.vpl hack-vpl hack-tfm
  30.     hack-vpl $<
  31.     vptovf $< $*.vf $*.tfm
  32.     hack-tfm $*.tfm
  33.  
  34. # How to make a TFM file from an AFM file (overridden for the math
  35. # fonts, which need a special encoding).
  36. %.vpl: %.afm $(AFM2TFM)
  37.     $(AFM2TFM) $< -v $*.vpl r$*.tfm
  38.  
  39. # How to make a .enc file (copy from another directory):
  40. %.enc:
  41.     cp $(encoding_dir)/$@ .
  42.     chmod 444 $@
  43.  
  44. default: $(adobe_all)
  45. all: $(adobe_all)
  46.  
  47. # Slanted.
  48. plcro.vpl: plcr.afm
  49.     $(AFM2TFM) $< $(AFM2TFMFLAGS) -s .167 -v $@ rplcro.tfm
  50.  
  51. # Math italic.
  52. plcrm.vpl: plcrm.afm texmital.enc
  53.     $(AFM2TFM) $< $(AFM2TFMFLAGS) -v $@ -t texmital.enc rplcrm.tfm
  54.  
  55. # Math symbol.
  56. plcry.vpl: plcry.afm plcry.add texmsym.enc
  57.     $(AFM2TFM) $< $(AFM2TFMFLAGS) -v $@ -t texmsym.enc rplcry.tfm
  58.  
  59. # Math extension.
  60. plcrv.vpl: plcrv.afm plcrv.add texmext.enc
  61.     $(AFM2TFM) $< $(AFM2TFMFLAGS) -v $@ -t texmext.enc rplcrv.tfm
  62.  
  63. install: all
  64.     -mkdir $(tfm_dir) $(vf_dir) >/dev/null 2>&1
  65.     for f in *.tfm; do $(INSTALL_DATA) $$f $(tfm_dir)/$$f; done
  66.     for f in *.vf; do $(INSTALL_DATA) $$f $(vf_dir)/$$f; done
  67.  
  68. distdir = lucida-$(version)
  69. dist: $(adobe_all)
  70.     rm -rf $(distdir)
  71.     mkdir $(distdir)
  72.     ln Makefile NEWS README lucidamath.tex $(distdir)
  73.     bash -c "ln plc*.{afm,tfm,vf} $(distdir)"
  74.     ln rplc*.tfm $(distdir)
  75.     ln *.sty *.sup $(distdir)
  76.     cp $(encoding_dir)/*.enc $(distdir)
  77.     grep rplc psfonts.add > $(distdir)/psfonts.add
  78.     cp $(generic)/tralphap.tex $(distdir)
  79.     tar czf $(distdir). $(distdir)
  80.     rm -rf $(distdir)
  81.  
  82. mostlyclean clean:
  83.     rm -f hackvpl* *.pl *.vpl *.enc
  84.  
  85. distclean: clean
  86.  
  87. realclean:
  88.     rm -f *.tfm *.vf
  89.  
  90. extraclean: distclean
  91.     rm -f  *~ *#* *.dvi *.log *.aux *.ps
  92.